<h1>New Event Calendar</h1>

<% form_for :event, @event, 
:url => { :controller => 'calendar', :action => "create_event", :id => @event } do |f| %>
  <%= error_messages_for "event" %>

  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  
   <p>
    <%= f.label :description %><br />
    <%= f.text_area :name %>
  </p>
  Start at :<br/>
  <%= date_select("event", "start_at", :order => [:day, :month, :year],:start_year => Time.now.year, :end_year => Time.now.year+1)%>
  
  End at :<br/>
  <%= date_select("event", "end_at", :order => [:day, :month, :year],:start_year => Time.now.year, :end_year => Time.now.year+1)%>
  
  <p>
    <%= f.submit 'Create' %>
  </p>
<% end %>

